package com.study.spring4;


import com.study.spring4.MyBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public MyBean CreateBean(){

        return  new MyBean();
    }

    @Bean
    public Cat CreateCatBean(){

        return  new Cat();
    }

}
